package rad.framework.uml2.presentation;

import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.ui.EclipseUIPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.ecore.provider.EcoreEditPlugin;

/**
 * Singelton central pour UML2 Editor plugin
 * 
 * @author boudyacho
 */
public final class UML2EditorPlugin extends EMFPlugin {

	public static final UML2EditorPlugin INSTANCE = new UML2EditorPlugin();

	private static Implementation plugin;

	public UML2EditorPlugin() {
		super(new ResourceLocator[] {
			EcoreEditPlugin.INSTANCE,
		});
	}

	@Override
	public ResourceLocator getPluginResourceLocator() {
		return UML2EditorPlugin.plugin;
	}

	public static Implementation getPlugin() {
		return UML2EditorPlugin.plugin;
	}

	public static class Implementation extends EclipseUIPlugin {

		public Implementation() {
			super();

			UML2EditorPlugin.plugin = this;
		}
	}

}
